﻿namespace Sidvall.Logging
{
    public static class EventTypeManager
    {
        public static System.Collections.ObjectModel.Collection<EventType> GetEventTypes()
        {
            return GetEventTypes(true, true);
        }
        public static System.Collections.ObjectModel.Collection<EventType> GetEventTypes(bool includeWarning, bool includeInformation)
        {
            var items = new System.Collections.ObjectModel.Collection<EventType>();
            items.Add(EventType.Critical);
            items.Add(EventType.Error);
            if (includeWarning)
                items.Add(EventType.Warning);
            if (includeInformation)
                items.Add(EventType.Information);
            return items;
        }
    }
}
